package com.xq.shop.service.admin;

import java.util.List;

import com.xq.shop.dao.IBaseDAO;
import com.xq.shop.vo.PageInfo;
import com.xq.shop.vo.SearchObject;

public interface IBaseService<T> {

	public void delete(List<Long> ids);
	
	public List<T> get(List<Long> ids);
	
	public T get(Long id);
	
	public List<T> get(Long[] ids);
	
	public PageInfo<T> get(SearchObject search);
	
	public List<T> getAll();
	
	public IBaseDAO<T> getDAO();
	
	public void save(T instance);
	
	public void saveOrUpdate(T instance);
	
	public void update(T instance);
}
